package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.CollectMovie;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMovieMapper {

    Page<CollectMovie> findAll();

    Integer findCountByMovieId(@Param("mId") Integer mId);

    List<CollectMovie> findByUserId(@Param("uId") Integer uId);

    List<CollectMovie> findByMovieId(@Param("mId") Integer mId);

    void save(CollectMovie collectMovie);

    void deleteById(@Param("cmId") Integer cmId);
}